import {UPDATE_ITEM_DATA} from "./type";

let initStates = {
    selectData: {},
    result : [
        {title: "测试数据1"},
        {title: "测试数据2"},
        {title: "测试数据3"},
        {title: "测试数据4"},
        {title: "测试数据5"},
        {title: "测试数据6"},
        {title: "测试数据7"},
        {title: "测试数据8"},
        {title: "测试数据9"},
        {title: "测试数据10"},
        {title: "测试数据11"},
        {title: "测试数据12"},
        {title: "测试数据13"},
        {title: "测试数据14"},
        {title: "测试数据15"},
        {title: "测试数据16"},
        {title: "测试数据17"},
        {title: "测试数据18"},
        {title: "测试数据19"},
        {title: "测试数据20"},
        {title: "测试数据21"},
        {title: "测试数据22"},
        {title: "测试数据23"},
        {title: "测试数据24"},
        {title: "测试数据25"},
        {title: "测试数据26"},
        {title: "测试数据27"}
    ]
}

function ListReducers(state = initStates, action) {
    switch (action.type) {
        case UPDATE_ITEM_DATA:
            return Object.assign({}, state, {
                selectData: action.selectData
            });
        default:
            return state;
    }
}

export default ListReducers;
